<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LxLog: Log/Header/Component/Time.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">LxLog
   </div>
   <div id="projectbrief">日志库</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_fc30d8bc4c52f877dd2b6315e410f6d2.html">Log</a></li><li class="navelem"><a class="el" href="dir_1d51d969017dc8086f211a85a7d1ac16.html">Header</a></li><li class="navelem"><a class="el" href="dir_74733d9b1ae7edc4f22b7b9391ad723f.html">Component</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">Time.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_time_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#ifndef LOGGER_TIME_H</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#define LOGGER_TIME_H</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="foldopen" id="foldopen00012" data-start="{" data-end="};">
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="class_time.html">   12</a></span><span class="keyword">class </span><a class="code hl_class" href="class_time.html">Time</a> {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00014" data-start="{" data-end="}">
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="class_time.html#ad5c7fc0457ae7a368cfe0dd089970ad8">   14</a></span>    <span class="keyword">explicit</span> <a class="code hl_function" href="class_time.html#ad5c7fc0457ae7a368cfe0dd089970ad8">Time</a>(<span class="keywordtype">int</span> year, <span class="keywordtype">int</span> month, <span class="keywordtype">int</span> day, <span class="keywordtype">int</span> hour, <span class="keywordtype">int</span> minute, <span class="keywordtype">int</span> second) :</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span>            <a class="code hl_variable" href="class_time.html#ad2329c25520f4f561e7143cef5997279">mYear</a>(year), <a class="code hl_variable" href="class_time.html#a13b7812113b018f25d761e8790237134">mMonth</a>(month), <a class="code hl_variable" href="class_time.html#a62567f3af7e6a62994c1865d5ba5fc27">mDay</a>(day), <a class="code hl_variable" href="class_time.html#afcca4912dd774e773a9e50c02dd4496f">mHour</a>(hour), <a class="code hl_variable" href="class_time.html#ab568af317099b3a68b068aa13d449d00">mMinute</a>(minute), <a class="code hl_variable" href="class_time.html#aff1414aeb2f65e4a53041f3c0376af6d">mSecond</a>(second) {}</div>
</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="class_time.html#ade7face40dbabb5ee40b34e2584ca731">   18</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_time.html#ade7face40dbabb5ee40b34e2584ca731">getYear</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_time.html#ad2329c25520f4f561e7143cef5997279">mYear</a>; }</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="class_time.html#a92ebae2cc25d4d448b934ab632577cb7">   20</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_time.html#a92ebae2cc25d4d448b934ab632577cb7">getMonth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_time.html#a13b7812113b018f25d761e8790237134">mMonth</a>; }</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="class_time.html#a1a0aaa223057af66b55e0287a6219262">   22</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_time.html#a1a0aaa223057af66b55e0287a6219262">getDay</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_time.html#a62567f3af7e6a62994c1865d5ba5fc27">mDay</a>; }</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_time.html#aacb846812dccbf244d52e0f237ad0026">   24</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_time.html#aacb846812dccbf244d52e0f237ad0026">getHour</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_time.html#afcca4912dd774e773a9e50c02dd4496f">mHour</a>; }</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="class_time.html#a809250b6139afebe7c41a1fe6c857172">   26</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_time.html#a809250b6139afebe7c41a1fe6c857172">getMinute</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_time.html#ab568af317099b3a68b068aa13d449d00">mMinute</a>; }</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="class_time.html#a1d3681b3ccd635d0a285b3d628e03d60">   28</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_time.html#a1d3681b3ccd635d0a285b3d628e03d60">getSecond</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_time.html#aff1414aeb2f65e4a53041f3c0376af6d">mSecond</a>; }</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="class_time.html#ad2329c25520f4f561e7143cef5997279">   31</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_time.html#ad2329c25520f4f561e7143cef5997279">mYear</a>{0};</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="class_time.html#a13b7812113b018f25d761e8790237134">   32</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_time.html#a13b7812113b018f25d761e8790237134">mMonth</a>{0};</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_time.html#a62567f3af7e6a62994c1865d5ba5fc27">   33</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_time.html#a62567f3af7e6a62994c1865d5ba5fc27">mDay</a>{0};</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_time.html#afcca4912dd774e773a9e50c02dd4496f">   34</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_time.html#afcca4912dd774e773a9e50c02dd4496f">mHour</a>{0};</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="class_time.html#ab568af317099b3a68b068aa13d449d00">   35</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_time.html#ab568af317099b3a68b068aa13d449d00">mMinute</a>{0};</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="class_time.html#aff1414aeb2f65e4a53041f3c0376af6d">   36</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_time.html#aff1414aeb2f65e4a53041f3c0376af6d">mSecond</a>{0};</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>};</div>
</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#endif </span><span class="comment">//LOGGER_TIME_H</span></div>
<div class="ttc" id="aclass_time_html"><div class="ttname"><a href="class_time.html">Time</a></div><div class="ttdef"><b>定义</b> Time.h:12</div></div>
<div class="ttc" id="aclass_time_html_a13b7812113b018f25d761e8790237134"><div class="ttname"><a href="class_time.html#a13b7812113b018f25d761e8790237134">Time::mMonth</a></div><div class="ttdeci">int mMonth</div><div class="ttdef"><b>定义</b> Time.h:32</div></div>
<div class="ttc" id="aclass_time_html_a1a0aaa223057af66b55e0287a6219262"><div class="ttname"><a href="class_time.html#a1a0aaa223057af66b55e0287a6219262">Time::getDay</a></div><div class="ttdeci">int getDay() const</div><div class="ttdoc">返回日</div><div class="ttdef"><b>定义</b> Time.h:22</div></div>
<div class="ttc" id="aclass_time_html_a1d3681b3ccd635d0a285b3d628e03d60"><div class="ttname"><a href="class_time.html#a1d3681b3ccd635d0a285b3d628e03d60">Time::getSecond</a></div><div class="ttdeci">int getSecond() const</div><div class="ttdoc">返回秒</div><div class="ttdef"><b>定义</b> Time.h:28</div></div>
<div class="ttc" id="aclass_time_html_a62567f3af7e6a62994c1865d5ba5fc27"><div class="ttname"><a href="class_time.html#a62567f3af7e6a62994c1865d5ba5fc27">Time::mDay</a></div><div class="ttdeci">int mDay</div><div class="ttdef"><b>定义</b> Time.h:33</div></div>
<div class="ttc" id="aclass_time_html_a809250b6139afebe7c41a1fe6c857172"><div class="ttname"><a href="class_time.html#a809250b6139afebe7c41a1fe6c857172">Time::getMinute</a></div><div class="ttdeci">int getMinute() const</div><div class="ttdoc">返回分</div><div class="ttdef"><b>定义</b> Time.h:26</div></div>
<div class="ttc" id="aclass_time_html_a92ebae2cc25d4d448b934ab632577cb7"><div class="ttname"><a href="class_time.html#a92ebae2cc25d4d448b934ab632577cb7">Time::getMonth</a></div><div class="ttdeci">int getMonth() const</div><div class="ttdoc">返回月</div><div class="ttdef"><b>定义</b> Time.h:20</div></div>
<div class="ttc" id="aclass_time_html_aacb846812dccbf244d52e0f237ad0026"><div class="ttname"><a href="class_time.html#aacb846812dccbf244d52e0f237ad0026">Time::getHour</a></div><div class="ttdeci">int getHour() const</div><div class="ttdoc">返回时</div><div class="ttdef"><b>定义</b> Time.h:24</div></div>
<div class="ttc" id="aclass_time_html_ab568af317099b3a68b068aa13d449d00"><div class="ttname"><a href="class_time.html#ab568af317099b3a68b068aa13d449d00">Time::mMinute</a></div><div class="ttdeci">int mMinute</div><div class="ttdef"><b>定义</b> Time.h:35</div></div>
<div class="ttc" id="aclass_time_html_ad2329c25520f4f561e7143cef5997279"><div class="ttname"><a href="class_time.html#ad2329c25520f4f561e7143cef5997279">Time::mYear</a></div><div class="ttdeci">int mYear</div><div class="ttdef"><b>定义</b> Time.h:31</div></div>
<div class="ttc" id="aclass_time_html_ad5c7fc0457ae7a368cfe0dd089970ad8"><div class="ttname"><a href="class_time.html#ad5c7fc0457ae7a368cfe0dd089970ad8">Time::Time</a></div><div class="ttdeci">Time(int year, int month, int day, int hour, int minute, int second)</div><div class="ttdef"><b>定义</b> Time.h:14</div></div>
<div class="ttc" id="aclass_time_html_ade7face40dbabb5ee40b34e2584ca731"><div class="ttname"><a href="class_time.html#ade7face40dbabb5ee40b34e2584ca731">Time::getYear</a></div><div class="ttdeci">int getYear() const</div><div class="ttdoc">返回年</div><div class="ttdef"><b>定义</b> Time.h:18</div></div>
<div class="ttc" id="aclass_time_html_afcca4912dd774e773a9e50c02dd4496f"><div class="ttname"><a href="class_time.html#afcca4912dd774e773a9e50c02dd4496f">Time::mHour</a></div><div class="ttdeci">int mHour</div><div class="ttdef"><b>定义</b> Time.h:34</div></div>
<div class="ttc" id="aclass_time_html_aff1414aeb2f65e4a53041f3c0376af6d"><div class="ttname"><a href="class_time.html#aff1414aeb2f65e4a53041f3c0376af6d">Time::mSecond</a></div><div class="ttdeci">int mSecond</div><div class="ttdef"><b>定义</b> Time.h:36</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
